﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;
using System.Data.Entity;
using System.Web;

namespace Capokun.Models
{


	[Serializable]
	///model for our storage table schema
	public class Song
	{
		[Key]
		[Required]
		public string SongId { get; set; }

		public string SongId_fr { get; set; }

		public string SongId_en { get; set; }

		/// <summary>
		/// video/audio link, youtube, ssij, etc...
		/// </summary>
		public string Link { get; set; }

		[Required]
		public string Content { get; set; }

		public string Content_fr { get; set; }

		public string Content_en { get; set; }

		//public Song(string SongId, string Link, string Content, string Content_fr, string Content_en, string SubmittedBy)
		//{
		//    this.SongId = SongId;
		//    this.Link = Link;
		//    this.Content = Content;
		//    this.Content_fr = Content_fr;
		//    this.Content_en = Content_en;
		//    this.SubmittedBy = SubmittedBy;
		//    PartitionKey = SongId;
		//    RowKey = Guid.NewGuid().ToString();
		//}

		public Song()
		{
			//PartitionKey = SongId;
			//RowKey = Guid.NewGuid().ToString();
		}

		/// <summary>
		/// facebook username of submitter, if null=anonymous
		/// </summary>
		public string SubmittedBy { get; set; }
	}

	///// <summary>
	///// plural songs model (used in suck ssj)
	///// </summary>
	//public class SongsModel
	//{
	//    public List<string> SongTitles { get; set; }
	//    public List<string> SongLinks { get; set; }
	//    public List<string> SongContents { get; set; }
	//}

}
